<?php include_component('tree'
                    , 'path'
                    , array('path' => 'user')); ?>
<br/>
<div class="text">
<?php if( has_any_role_id(array(MyConstants::ROLE_ADMIN, MyConstants::ROLE_MODERATOR)) ): ?>
    <?php include_partial(
            'user_info_admin'
            , array(
                'user' => $user
            )) ?>
<?php elseif( get_user_id() ): ?>
    <?php include_partial(
            'user_info'
            , array(
                'user' => $user
            )) ?>
<?php else: ?>
    <?php echo __('You are not allowed to view user info') ?>
<?php endif; ?>
</div>
<div class="dashed_line">
</div>
<br/>